package com.kxmall.storage.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.kxmall.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;


/**
 * 仓库商品对象 kx_storage_goods
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("kx_storage_goods")
public class KxStorageGoods extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 仓库ID
     */
    private Long storageId;
    /**
     * 商品ID
     */
    private Long productId;
    /**
     * 商品名称
     */
    private String productName;
    /**
     * 商品规格ID
     */
    private Long productAttrId;
    /**
     * 商品规格
     */
    private String productAttrName;
    /**
     * 商品类目ID
     */
    private Long categoryId;
    /**
     * 商品类目
     */
    private String categoryName;
    /**
    /**
     * 销售状态1上架0下架
     */
    private Integer status;
    /**
     * 库存
     */
    private Long stock;
    /**
     * 销售量
     */
    private Long sales;
    /**
     * 冻结库存
     */
    private Long frezzStock;
    /**
     * 当前售价
     */
    private BigDecimal price;
    /**
     * 预警数量
     */
    private Long warningNum;

    /**
     * 是否删除
     */
    private Integer isDelete;

}
